package vn.fpt.snake.unitTest;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import vn.fpt.snake.controller.FruitControllerImpl;
import vn.fpt.snake.controller.GameControllerImpl;
import vn.fpt.snake.controller.SnakeControllerImpl;
import vn.fpt.snake.entity.Apple;
import vn.fpt.snake.entity.Snake;

public class GameControllerImplTest {
	Apple apple;
	Snake snake;
	GameControllerImpl gameController;
	FruitControllerImpl fruistController;
	SnakeControllerImpl snakeController;
	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
	}

	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}

	@Before
	public void setUp() throws Exception {
		gameController = new GameControllerImpl();
		/* New snake */
		snake = new Snake(1000);
		for (int x = 10; x < 20; x++) {
			snake.setX(x, x);
		}
		for (int y = 10; y < 20; y++) {
			snake.setY(y, y);
		}

		/* new Apple */
		apple = new Apple();

		apple.setX(90);
		apple.setY(90);

		
	}
	

	@After
	public void tearDown() throws Exception {
	}


}
